<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邻里 - 设置</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
        }
        
        .header {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .back-btn {
            font-size: 1.2rem;
            margin-right: 15px;
            cursor: pointer;
        }
        
        .header-title {
            flex: 1;
            text-align: center;
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        .points {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
        }
        
        .content {
            padding: 20px 15px;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            font-size: 1.8rem;
        }
        
        .user-info h3 {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }
        
        .user-info p {
            color: #666;
            font-size: 0.9rem;
        }
        
        .edit-btn {
            margin-left: auto;
            color: #2575fc;
            font-size: 0.9rem;
            text-decoration: none;
        }
        
        .settings-group {
            background: white;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .settings-title {
            padding: 15px 20px;
            font-weight: bold;
            color: #666;
            font-size: 0.9rem;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .settings-item:last-child {
            border-bottom: none;
        }
        
        .item-info {
            display: flex;
            align-items: center;
        }
        
        .item-icon {
            width: 24px;
            height: 24px;
            margin-right: 15px;
            color: #2575fc;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .item-content {
            display: flex;
            flex-direction: column;
        }
        
        .item-title {
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .item-desc {
            font-size: 0.85rem;
            color: #888;
        }
        
        .item-action {
            color: #999;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #2575fc;
        }
        
        input:checked + .slider:before {
            transform: translateX(24px);
        }
        
        .badge {
            background: #ff4757;
            color: white;
            border-radius: 10px;
            padding: 2px 8px;
            font-size: 0.75rem;
            margin-left: 8px;
        }
        
        .logout-btn {
            display: block;
            width: 100%;
            padding: 15px;
            background: white;
            color: #ff4757;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 500;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            margin-top: 30px;
        }
        
        .version {
            text-align: center;
            color: #999;
            font-size: 0.85rem;
            margin-top: 20px;
        }
        
        .menu {
            background: white;
            margin-top: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .menu-item {
            padding: 16px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item span {
            font-weight: 500;
        }
        
        .arrow {
            color: #999;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="back-btn">
                <i class="fas fa-arrow-left"></i>
            </div>
            <div class="header-title">设置</div>
            <div class="points">积分: 350</div>
        </div>
        
        <div class="content">
            <div class="user-profile">
                <div class="avatar">明</div>
                <div class="user-info">
                    <h3>邻居小明</h3>
                    <p>8号楼 2单元 301</p>
                </div>
                <a href="#" class="edit-btn">编辑资料</a>
            </div>
            
            <div class="settings-group">
                <div class="settings-title">账号设置</div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-user"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">账号与安全</div>
                            <div class="item-desc">修改密码、手机号绑定</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-map-marker-alt"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">地址管理</div>
                            <div class="item-desc">收货地址、常用地址</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-coins"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">积分管理</div>
                            <div class="item-desc">积分规则、积分明细</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
            
            <div class="settings-group">
                <div class="settings-title">消息通知</div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-bell"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">推送通知</div>
                            <div class="item-desc">订单、活动等消息提醒</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <label class="switch">
                            <input type="checkbox" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-comment"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">短信通知</div>
                            <div class="item-desc">重要事件短信提醒</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <label class="switch">
                            <input type="checkbox">
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-envelope"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">邮件订阅</div>
                            <div class="item-desc">社区活动、优惠信息</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <label class="switch">
                            <input type="checkbox" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
            </div>
            
            <div class="settings-group">
                <div class="settings-title">隐私与权限</div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-lock"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">隐私设置</div>
                            <div class="item-desc">个人信息保护</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-eye"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">动态可见范围</div>
                            <div class="item-desc">谁可以看我的发布</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-microphone"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">麦克风权限</div>
                            <div class="item-desc">语音消息、语音搜索</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <label class="switch">
                            <input type="checkbox" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-camera"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">相机权限</div>
                            <div class="item-desc">拍照上传、扫码</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <label class="switch">
                            <input type="checkbox" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
            </div>
            
            <div class="settings-group">
                <div class="settings-title">通用设置</div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-language"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">多语言</div>
                            <div class="item-desc">切换应用语言</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <span style="color: #666; margin-right: 8px;">简体中文</span>
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-paint-brush"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">主题模式</div>
                            <div class="item-desc">浅色/深色模式</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <span style="color: #666; margin-right: 8px;">浅色</span>
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-trash-alt"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">清除缓存</div>
                            <div class="item-desc">已使用 256.8MB</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
            
            <div class="settings-group">
                <div class="settings-title">支持与反馈</div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-question-circle"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">帮助中心</div>
                            <div class="item-desc">常见问题与解答</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-comments"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">意见反馈</div>
                            <div class="item-desc">问题反馈与建议</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-star"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">评价我们</div>
                            <div class="item-desc">给邻里应用评分</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
                <div class="settings-item">
                    <div class="item-info">
                        <div class="item-icon">
                            <i class="fas fa-info-circle"></i>
                        </div>
                        <div class="item-content">
                            <div class="item-title">关于邻里</div>
                            <div class="item-desc">版本信息与协议</div>
                        </div>
                    </div>
                    <div class="item-action">
                        <span style="color: #666; margin-right: 8px;">v3.2.1</span>
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
            
            <button class="logout-btn">退出登录</button>
            
            <div class="version">邻里 © 2023 版本号 3.2.1 (Build 1028)</div>
            
            <div class="menu">
                <div class="menu-item">
                    <span>我的发布</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>我的订单</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>我的帖子</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>我的兑换</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>客服中心</span>
                    <span class="arrow">›</span>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 返回按钮功能
        document.querySelector('.back-btn').addEventListener('click', function() {
            alert('返回上一页');
            // 实际应用中这里应该是 history.back() 或路由跳转
        });
        
        // 退出登录按钮功能
        document.querySelector('.logout-btn').addEventListener('click', function() {
            if(confirm('确定要退出登录吗？')) {
                alert('已退出登录');
                // 实际应用中这里应该是清除登录状态并跳转到登录页
            }
        });
        
        // 开关切换功能
        document.querySelectorAll('.switch input').forEach(switchInput => {
            switchInput.addEventListener('change', function() {
                const settingName = this.closest('.settings-item').querySelector('.item-title').textContent;
                const action = this.checked ? '开启' : '关闭';
                console.log(`${action}了${settingName}`);
            });
        });
    </script>
</body>
</html>